package server.game.world.map;

public class Region {

	private int x, y;
	private Tile[][] tiles;
	

	public Region(int x, int y) {
		tiles = new Tile[100][100];
	}
	
	public void generateRandom() {
		for(int x = 0; x < tiles.length; x++) {
			for(int y = 0; y < tiles[x].length; y++) {
				tiles[x][y] = new Tile(this, x, y);
				tiles[x][y].getProperties().setBlocked((Math.random() > 0.7));
			}
		}
	}
	
	public Tile getTile(int x, int y) {
		return tiles[x][y];
	}
	
	public int getX() {
		return x;
	}
	
	public int getY() {
		return y;
	}
	
}
